﻿@model XZen.Blogger.Magazine

@{
    ViewBag.Title = "Create";
    Layout = null;
}

<div class="panel panel-default">
    <div class="panel-heading">
        <h6 class="panel-title"><i class="icon-book"></i>Isssue on Books</h6>
        <span class="label pull-right">
            @Html.ActionLink("Back To List", "Index", "Magazine")
        </span>
    </div>
    <div class="panel-body">

        @using (Html.BeginForm("CreateMagazine", "Magazine", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <div class="form" role="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label">Title: </label>
                    <div class="col-sm-10">
                        @Html.TextBoxFor(model => model.Title, new { @class = "form-control" })
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 control-label">Category: </label>
                    <div class="col-sm-10">
                        @Html.TextBoxFor(model => model.Category, new { @class = "form-control" })
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">Description: </label>
                    <div class="col-sm-10">
                        @Html.TextAreaFor(model => model.Body, new { @class = "form-control", rows = "5", cols = "5", placeholder = "Default textarea" })
                    </div>
                </div>

                <div class="form-actions text-right">
                    <button type="button" class="btn btn-primary submit">Submit</button>
                </div>
            </div>
        }

    </div>
</div>

